package com.mercury.pattern._03_prototype._003_deep;

import java.io.Serializable;

public class Wool implements Cloneable, Serializable {
    // 是不是卷毛
    boolean roll;
    //毛的长度
    int length;

    public Wool(boolean roll, int length) {
        this.roll = roll;
        this.length = length;
    }

    public boolean isRoll() {
        return roll;
    }

    public void setRoll(boolean roll) {
        this.roll = roll;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
